Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import sys
  3. import traceback
  4. from interpreter import *
  5. from emccanon import MESSAGE
  6. from stdglue import *
  7. from util import lineno, call_pydevd
  8.  
  9.  
  10.  
  11.  
  12. def M6_Remap_BiesseRover346(self, **words):
  13.  
  14.  
  15. MESSAGE("Tool change %d => %d" % (self.current_tool, self.selected_tool))
  16. print "Tool change %d => %d" % (self.current_tool, self.selected_tool)
  17. self.execute("G53 G0 X40 Y-10 Z0",lineno())
  18. emccanon.CHANGE_TOOL(self.selected_pocket)
  19. self.current_pocket = self.selected_pocket
  20. self.selected_pocket = -1
  21. self.selected_tool = -1
  22. # cause a sync()
  23. self.set_tool_parameters()
  24.  
  25. yield INTERP_EXECUTE_FINISH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement